CC = gcc
CFLAGS = -Wall -Wextra -g
LDFLAGS = -lcurl -lpthread

TARGET = camera_test
SRCS = main.c camera_utils.c
OBJS = $(SRCS:.c=.o)

.PHONY: all clean

all: $(TARGET)

$(TARGET): $(OBJS)
	$(CC) -o $@ $^ $(LDFLAGS)

%.o: %.c
	$(CC) $(CFLAGS) -c $< -o $@

clean:
	rm -f $(TARGET) $(OBJS) 